package com.zdp.filesync.commonline.service.impl;

import com.zdp.filesync.commonline.entity.StreamGobbler;
import com.zdp.filesync.commonline.service.CommonLine;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;

import java.io.File;
import java.io.IOException;
import java.util.concurrent.*;
import java.util.function.Function;

@Slf4j
public class CommonLineWin  extends AbstractCommonLine {

    private String prex = "cmd.exe";

    private String other = "/c";

    @Value("${file-sync.common-line.charset:UTF-8}")
    private String charSetName;

    @Override
    String getCharSetName() {
        return charSetName;
    }


    @Override
    protected String getPrex() {
        return prex;
    }

    @Override
    String getOther() {
        return other;
    }
}
